﻿using NodeCanvas.Framework;

namespace Yoozoo.Gameplay.Liberty.AI.Node
{
    public class ReturnNpcStatusFailureAction : AIBaseNode
    {
        public BBParameter<NpcStatus> npcStatus = NpcStatus.PathControl;

        protected override void OnUpdate()
        {
            if (_entity && (_entity.data.npcStatus & npcStatus.value) == 0)
            {
                EndAction(false);
            }
        }
    }
}